package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 测试主表对象 table_main
 * 
 * @author ruoyi
 * @date 2024-09-30
 */
public class TableMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private BigDecimal orderPrice;

    /** 测试从表信息 */
    private List<TableSlave> tableSlaveList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderPrice(BigDecimal orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getOrderPrice() 
    {
        return orderPrice;
    }

    public List<TableSlave> getTableSlaveList()
    {
        return tableSlaveList;
    }

    public void setTableSlaveList(List<TableSlave> tableSlaveList)
    {
        this.tableSlaveList = tableSlaveList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderPrice", getOrderPrice())
            .append("tableSlaveList", getTableSlaveList())
            .toString();
    }
}
